<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>赞助推荐 | SocialSponsor</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 1030;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }
        
        .nav-link {
            color: var(--secondary);
            margin-left: 1rem;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 主内容区 */
        .main-content {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .section-description {
            color: var(--secondary);
            max-width: 800px;
        }
        
        /* 筛选器 */
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 2rem;
            align-items: center;
        }
        
        .filter-chip {
            background-color: white;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-chip:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .view-toggle {
            margin-left: auto;
            display: flex;
            gap: 0.5rem;
            background-color: white;
            border-radius: 6px;
            padding: 0.25rem;
        }
        
        .view-btn {
            background: none;
            border: none;
            padding: 0.35rem 0.75rem;
            border-radius: 4px;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 赞助卡片通用样式 */
        .sponsorship-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .sponsorship-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .sponsorship-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .sponsor-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .sponsor-info {
            flex: 1;
        }
        
        .sponsor-name {
            font-weight: 600;
            font-size: 1rem;
        }
        
        .sponsor-meta {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        .sponsorship-body {
            padding: 1.5rem;
        }
        
        .sponsorship-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        
        .sponsorship-description {
            color: var(--secondary);
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        
        .sponsorship-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1.5rem;
            border-top: 1px solid var(--border);
            background-color: var(--light);
        }
        
        .stats {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
            color: var(--secondary);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--secondary);
            padding: 0.35rem;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: rgba(59, 130, 246, 0.1);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 图片容器样式 */
        .image-container {
            margin-bottom: 1rem;
            border-radius: var(--radius);
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }
        
        .multiple-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
        }
        
        .multiple-images img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        
        .multiple-images img:nth-child(1) {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
            height: 100%;
        }
        
        /* 无图片样式 */
        .no-image-placeholder {
            background-color: #e2e8f0;
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            margin-bottom: 1rem;
            border-radius: var(--radius);
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        /* 列表布局 */
        .list-layout .sponsorship-card {
            display: flex;
            height: 280px;
        }
        
        .list-layout .image-container,
        .list-layout .no-image-placeholder {
            width: 30%;
            margin-bottom: 0;
            height: 100%;
        }
        
        .list-layout .single-image {
            height: 100%;
        }
        
        .list-layout .multiple-images {
            height: 100%;
        }
        
        .list-layout .multiple-images img {
            height: 100%;
        }
        
        .list-layout .sponsorship-content {
            width: 70%;
            display: flex;
            flex-direction: column;
        }
        
        .list-layout .sponsorship-body {
            flex: 1;
            overflow: hidden;
        }
        
        .list-layout .sponsorship-description {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 特色布局 */
        .featured-layout {
            margin-bottom: 3rem;
        }
        
        .featured-sponsorship {
            display: flex;
            flex-direction: column;
        }
        
        .featured-sponsorship .image-container {
            width: 100%;
            margin-bottom: 1.5rem;
        }
        
        .featured-sponsorship .single-image {
            height: 400px;
        }
        
        .featured-sponsorship .sponsorship-title {
            font-size: 1.8rem;
        }
        
        .featured-sponsorship .sponsorship-description {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }
        
        .featured-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: var(--warning);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        /* 紧凑布局 */
        .compact-layout .sponsorship-card {
            display: flex;
            align-items: center;
            padding: 1rem;
            height: auto;
        }
        
        .compact-layout .sponsor-avatar {
            width: 50px;
            height: 50px;
            margin-right: 1rem;
        }
        
        .compact-layout .sponsorship-content {
            flex: 1;
        }
        
        .compact-layout .sponsorship-title {
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .compact-layout .sponsorship-description {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .compact-layout .image-container {
            width: 80px;
            height: 80px;
            margin-bottom: 0;
            margin-left: 1rem;
        }
        
        .compact-layout .single-image {
            height: 100%;
        }
        
        .compact-layout .no-image-placeholder {
            height: 80px;
            width: 80px;
            margin-bottom: 0;
            margin-left: 1rem;
        }
        
        .compact-layout .sponsorship-footer {
            display: none;
        }
        
        .compact-layout .compact-actions {
            display: flex;
            gap: 1rem;
            margin-left: 1rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-layout .sponsorship-card {
                flex-direction: column;
                height: auto;
            }
            
            .list-layout .image-container,
            .list-layout .no-image-placeholder {
                width: 100%;
                height: 220px;
            }
            
            .list-layout .sponsorship-content {
                width: 100%;
            }
            
            .featured-sponsorship .single-image {
                height: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }
            
            .view-toggle {
                margin-left: 0;
                margin-top: 1rem;
                width: 100%;
                justify-content: center;
            }
            
            .grid-layout {
                grid-template-columns: 1fr;
            }
            
            .featured-sponsorship .single-image {
                height: 220px;
            }
            
            .featured-sponsorship .sponsorship-title {
                font-size: 1.5rem;
            }
            
            .compact-layout .sponsorship-card {
                flex-wrap: wrap;
            }
            
            .compact-layout .image-container,
            .compact-layout .no-image-placeholder {
                margin-left: 0;
                margin-top: 1rem;
            }
            
            .compact-layout .compact-actions {
                margin-left: 0;
                margin-top: 1rem;
                width: 100%;
                justify-content: center;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">SocialSponsor</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">赞助推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-user-circle"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 页面标题 -->
            <div class="section-header">
                <h1 class="section-title">赞助推荐</h1>
                <p class="section-description">发现值得支持的创意项目和有意义的社会活动，你的每一份赞助都能带来改变</p>
            </div>
            
            <!-- 筛选器 -->
            <div class="filters">
                <div class="filter-chip active">全部</div>
                <div class="filter-chip">创意项目</div>
                <div class="filter-chip">社会公益</div>
                <div class="filter-chip">文化艺术</div>
                <div class="filter-chip">教育支持</div>
                <div class="filter-chip">科技研发</div>
                
                <div class="view-toggle">
                    <button class="view-btn active" data-view="grid">
                        <i class="fas fa-th"></i> 网格
                    </button>
                    <button class="view-btn" data-view="list">
                        <i class="fas fa-list"></i> 列表
                    </button>
                </div>
            </div>
            
            <!-- 特色赞助（大图布局） -->
            <div class="featured-layout">
                <h2 class="section-title" style="font-size: 1.5rem; margin-bottom: 1rem;">特色赞助</h2>
                
                <div class="sponsorship-card featured-sponsorship" style="position: relative;">
                    <div class="featured-badge">
                        <i class="fas fa-star"></i> 热门
                    </div>
                    
                    <div class="image-container">
                        <img src="https://picsum.photos/1200/600?random=1" alt="乡村图书馆建设项目" class="single-image">
                    </div>
                    
                    <div class="sponsorship-content">
                        <div class="sponsorship-header">
                            <img src="https://picsum.photos/100/100?random=10" alt="张晓明的头像" class="sponsor-avatar">
                            
                            <div class="sponsor-info">
                                <div class="sponsor-name">张晓明</div>
                                <div class="sponsor-meta">乡村教育基金会 · 发布于 3天前</div>
                            </div>
                        </div>
                        
                        <div class="sponsorship-body">
                            <h3 class="sponsorship-title">为山区儿童建设乡村图书馆</h3>
                            
                            <p class="sponsorship-description">
                                我们计划在云南山区建设5所乡村图书馆，为当地儿童提供阅读资源和学习空间。目前已筹集到30%的资金，希望能得到更多社会爱心人士的支持。每捐赠100元就能为孩子们购买5本新书，你的每一份爱心都能帮助他们开拓视野，改变命运。
                            </p>
                            
                            <div class="progress" style="height: 8px; margin-bottom: 1rem;">
                                <div class="progress-bar bg-primary" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            
                            <div style="display: flex; gap: 2rem; margin-bottom: 1rem;">
                                <div>
                                    <div style="font-size: 1.5rem; font-weight: 700; color: var(--primary);">¥32,500</div>
                                    <div style="font-size: 0.9rem; color: var(--secondary);">已筹资金</div>
                                </div>
                                <div>
                                    <div style="font-size: 1.5rem; font-weight: 700;">1,250</div>
                                    <div style="font-size: 0.9rem; color: var(--secondary);">支持者</div>
                                </div>
                                <div>
                                    <div style="font-size: 1.5rem; font-weight: 700;">15天</div>
                                    <div style="font-size: 0.9rem; color: var(--secondary);">剩余时间</div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="sponsorship-footer">
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>8,452 浏览</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>328 留言</span>
                                </div>
                            </div>
                            
                            <div class="actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-thumbs-up"></i>
                                    <span>1,245</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                    <span>收藏</span>
                                </button>
                                <button class="action-btn" style="background-color: var(--primary); color: white;">
                                    <i class="fas fa-heart"></i>
                                    <span>立即赞助</span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 网格布局赞助推荐 -->
            <h2 class="section-title" style="font-size: 1.5rem; margin: 2rem 0 1rem;">热门赞助项目</h2>
            
            <div class="sponsorships-container grid-layout">
                <!-- 赞助1：多张图片 -->
                <div class="sponsorship-card">
                    <div class="image-container">
                        <div class="multiple-images">
                            <img src="https://picsum.photos/600/400?random=10" alt="手工艺术展作品1" class="thumbnail">
                            <img src="https://picsum.photos/600/400?random=11" alt="手工艺术展作品2" class="thumbnail">
                            <img src="https://picsum.photos/600/400?random=12" alt="手工艺术展作品3" class="thumbnail">
                        </div>
                    </div>
                    
                    <div class="sponsorship-header">
                        <img src="https://picsum.photos/100/100?random=11" alt="李艺的头像" class="sponsor-avatar">
                        
                        <div class="sponsor-info">
                            <div class="sponsor-name">李艺</div>
                            <div class="sponsor-meta">传统文化协会 · 发布于 1周前</div>
                        </div>
                    </div>
                    
                    <div class="sponsorship-body">
                        <h3 class="sponsorship-title">传统手工艺术展，传承非物质文化遗产</h3>
                        
                        <p class="sponsorship-description">
                            我们计划举办一场传统手工艺术展，展示剪纸、刺绣、陶艺等非物质文化遗产，让更多人了解和喜爱传统手工艺。展览将免费向公众开放，同时邀请手工艺人现场演示。
                        </p>
                    </div>
                    
                    <div class="sponsorship-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>3,241 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>156 留言</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>542</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 赞助2：单张图片 -->
                <div class="sponsorship-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=20" alt="海洋塑料垃圾清理项目" class="single-image">
                    </div>
                    
                    <div class="sponsorship-header">
                        <img src="https://picsum.photos/100/100?random=12" alt="王海洋的头像" class="sponsor-avatar">
                        
                        <div class="sponsor-info">
                            <div class="sponsor-name">王海洋</div>
                            <div class="sponsor-meta">绿色海洋保护组织 · 发布于 2周前</div>
                        </div>
                    </div>
                    
                    <div class="sponsorship-body">
                        <h3 class="sponsorship-title">海洋塑料垃圾清理计划，守护蓝色家园</h3>
                        
                        <p class="sponsorship-description">
                            组织志愿者团队定期清理海岸线塑料垃圾，同时开展海洋保护宣传教育活动，提高公众环保意识。我们需要资金购买清理工具和环保宣传材料。
                        </p>
                    </div>
                    
                    <div class="sponsorship-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>5,678 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>215 留言</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn like-btn liked">
                                <i class="fas fa-thumbs-up"></i>
                                <span>987</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 赞助3：无图片 -->
                <div class="sponsorship-card">
                    <div class="no-image-placeholder">
                        <i class="fas fa-microphone-alt" style="font-size: 2rem;"></i>
                    </div>
                    
                    <div class="sponsorship-header">
                        <img src="https://picsum.photos/100/100?random=13" alt="赵文学的头像" class="sponsor-avatar">
                        
                        <div class="sponsor-info">
                            <div class="sponsor-name">赵文学</div>
                            <div class="sponsor-meta">乡村教师联盟 · 发布于 3周前</div>
                        </div>
                    </div>
                    
                    <div class="sponsorship-body">
                        <h3 class="sponsorship-title">乡村教师培训计划，提升教学质量</h3>
                        
                        <p class="sponsorship-description">
                            邀请城市优秀教师为乡村教师提供线上线下培训，分享教学经验和方法，帮助乡村教师提升教学能力，让农村孩子享受更好的教育资源。
                        </p>
                    </div>
                    
                    <div class="sponsorship-footer">
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>2,154 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>98 留言</span>
                            </div>
                        </div>
                        
                        <div class="actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-thumbs-up"></i>
                                <span>321</span>
                            </button>
                            <button class="action-btn save-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 紧凑布局赞助推荐 -->
            <h2 class="section-title" style="font-size: 1.5rem; margin: 3rem 0 1rem;">更多值得关注的赞助</h2>
            
            <div class="sponsorships-container compact-layout">
                <!-- 紧凑赞助1：单张图片 -->
                <div class="sponsorship-card">
                    <img src="https://picsum.photos/100/100?random=14" alt="陈明的头像" class="sponsor-avatar">
                    
                    <div class="sponsorship-content">
                        <div class="sponsor-name">陈明</div>
                        <h3 class="sponsorship-title">社区老年食堂运营支持</h3>
                        <p class="sponsorship-description">为社区老人提供营养午餐，解决独居老人吃饭难问题</p>
                        
                        <div class="stats" style="margin-bottom: 0;">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>1,254</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>67</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-thumbs-up"></i>
                                <span>231</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=30" alt="社区老年食堂" class="single-image">
                    </div>
                    
                    <div class="compact-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-thumbs-up"></i>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                        <button class="action-btn" style="color: var(--primary);">
                            <i class="fas fa-heart"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 紧凑赞助2：无图片 -->
                <div class="sponsorship-card">
                    <img src="https://picsum.photos/100/100?random=15" alt="林科技的头像" class="sponsor-avatar">
                    
                    <div class="sponsorship-content">
                        <div class="sponsor-name">林科技</div>
                        <h3 class="sponsorship-title">青少年科技创新大赛赞助</h3>
                        <p class="sponsorship-description">支持中小学生科技创新项目，培养未来科技人才</p>
                        
                        <div class="stats" style="margin-bottom: 0;">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>1,876</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>103</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-thumbs-up"></i>
                                <span>425</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="no-image-placeholder">
                        <i class="fas fa-lightbulb" style="font-size: 1.5rem;"></i>
                    </div>
                    
                    <div class="compact-actions">
                        <button class="action-btn like-btn liked">
                            <i class="fas fa-thumbs-up"></i>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                        <button class="action-btn" style="color: var(--primary);">
                            <i class="fas fa-heart"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 紧凑赞助3：多张图片 -->
                <div class="sponsorship-card">
                    <img src="https://picsum.photos/100/100?random=16" alt="刘音乐的头像" class="sponsor-avatar">
                    
                    <div class="sponsorship-content">
                        <div class="sponsor-name">刘音乐</div>
                        <h3 class="sponsorship-title">乡村儿童音乐教室建设</h3>
                        <p class="sponsorship-description">为乡村学校建设音乐教室，提供乐器和音乐教材</p>
                        
                        <div class="stats" style="margin-bottom: 0;">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>2,103</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>89</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-thumbs-up"></i>
                                <span>356</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=40" alt="乡村音乐教室" class="single-image">
                    </div>
                    
                    <div class="compact-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-thumbs-up"></i>
                        </button>
                        <button class="action-btn save-btn saved">
                            <i class="fas fa-bookmark"></i>
                        </button>
                        <button class="action-btn" style="color: var(--primary);">
                            <i class="fas fa-heart"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 加载更多按钮 -->
            <div style="text-align: center; margin: 3rem 0;">
                <button class="btn btn-outline-primary" style="padding: 0.75rem 2rem; font-size: 1rem;">
                    <i class="fas fa-sync-alt"></i> 加载更多赞助项目
                </button>
            </div>
        </div>
    </div>

    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {

            
            // 视图切换功能
            const viewButtons = document.querySelectorAll('.view-btn');
            const sponsorshipsContainer = document.querySelector('.grid-layout').parentElement.querySelector('.sponsorships-container');
            
            viewButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 移除所有按钮的活跃状态
                    viewButtons.forEach(btn => btn.classList.remove('active'));
                    // 添加当前按钮的活跃状态
                    this.classList.add('active');
                    
                    // 切换布局类
                    const viewType = this.getAttribute('data-view');
                    if (viewType === 'grid') {
                        sponsorshipsContainer.classList.remove('list-layout');
                        sponsorshipsContainer.classList.add('grid-layout');
                    } else {
                        sponsorshipsContainer.classList.remove('grid-layout');
                        sponsorshipsContainer.classList.add('list-layout');
                    }
                });
            });
            
            // 筛选器功能
            const filterChips = document.querySelectorAll('.filter-chip');
            filterChips.forEach(chip => {
                chip.addEventListener('click', function() {
                    // 移除所有筛选器的活跃状态
                    filterChips.forEach(c => c.classList.remove('active'));
                    // 添加当前筛选器的活跃状态
                    this.classList.add('active');
                    
                    showNotification(`已筛选: ${this.textContent}`);
                });
            });
            
            // 点赞功能
            document.querySelectorAll('.like-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = countSpan ? parseInt(countSpan.textContent) : 0;
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'liked');
                        if (countSpan) countSpan.textContent = count + 1;
                        showNotification('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas', 'liked');
                        icon.classList.add('far');
                        if (countSpan) countSpan.textContent = count - 1;
                        showNotification('已取消点赞');
                    }
                });
            });
            
            // 收藏功能
            document.querySelectorAll('.save-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const textSpan = this.querySelector('span');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas', 'saved');
                        textSpan.textContent = '已收藏';
                        showNotification('已收藏该赞助项目');
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas', 'saved');
                        icon.classList.add('far');
                        textSpan.textContent = '收藏';
                        showNotification('已取消收藏');
                    }
                });
            });
            
            // 赞助按钮功能
            document.querySelectorAll('.action-btn:has(.fa-heart)').forEach(btn => {
                btn.addEventListener('click', function() {
                    showNotification('打开赞助页面');
                    // 实际应用中这里会跳转到赞助详情页或打开赞助模态框
                });
            });
            
            // 加载更多按钮
            document.querySelector('.btn-outline-primary').addEventListener('click', function() {
                const originalText = this.innerHTML;
                this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = originalText;
                    this.disabled = false;
                    showNotification('已加载更多赞助项目');
                }, 1500);
            });
        });
    </script>
</body>
</html>
    
